//
//  ServerCommunicationRequests.swift
//  Core
//
//  Created by raymond Peng on 2018/11/9.
//  Copyright © 2018 raymond Peng. All rights reserved.
//

import Foundation
import Domain

enum DataRequestMaker {
    case shoppingData

    func getDataRequest() -> IDataRequest {
        switch self {
        case .shoppingData:
            return ShoppingDataRequest()
        }
    }
}

private struct ShoppingDataRequest: IDataRequest {
    let url: URL = getURL(.api(path: .shoppingData))!

    let method: HTTPRequestMethod = .POST

    let params: [String : Any]? = nil

    let headers: [String : String]? = nil

    let encoding: RequestParameterEncoding = .queryString

    let requestBody: Data? = nil
}
